package structure.Flyweight;

/**
 * Created by LYJ on 2016/10/19.
 * 单纯享元角色
 */
public class ConcreteFlyweight implements Flyweight{
    private String str;

    public ConcreteFlyweight(String str) {
        this.str = str;
    }

    @Override
    public void operation(String state) {
        System.out.println("内蕴状态："+str);
        System.out.println("外蕴状态："+state);
    }
}
